package com.chunguang.netty.netty.server;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class HelloHandler extends SimpleChannelInboundHandler<String> {

	@Override
	protected void messageReceived(ChannelHandlerContext chx, String msg) throws Exception {
		 System.err.println("receive :"+msg);
		 chx.channel().writeAndFlush("hello , I am server");
	}
 
}
